package 编程题4;

public class Student extends  Person{
    private String school;
    private   int   xuHao;

    public Student(String name, String sex, int age, String school, int xuHao) {
        super(name, sex, age);
        this.school = school;
        this.xuHao = xuHao;
    }

    public Student(String school, int xuHao) {
        this.school = school;
        this.xuHao = xuHao;
    }

    public Student() {
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public int getXuHao() {
        return xuHao;
    }

    public void setXuHao(int xuHao) {
        this.xuHao = xuHao;
    }

    @Override
    public void work() {
        System.out.println("学习");
    }
}
